package j2metris.pieces;

import j2metris.ControllablePiece;

/**
 * The <code>PieceManager</code> class provides the methods for obtaining
 * individual <code>Pieces</code>.
 */
public class PieceManager
{
    private final int expectedUnitWidth = 10;
    private final int expectedUnitHeight = 10;

    public ControllablePiece getI()
    {
        return new I();
    }

    public ControllablePiece getJ()
    {
        return new J();
    }

    public ControllablePiece getL()
    {
        return new L();
    }

    public ControllablePiece getO()
    {
        return new O();
    }

    public ControllablePiece getS()
    {
        return new S();
    }

    public ControllablePiece getT()
    {
        return new T();
    }

    public ControllablePiece getZ()
    {
        return new Z();
    }

    public int getExpectedUnitWidth()
    {
        return expectedUnitWidth;
    }

    public int getExpectedUnitHeight()
    {
        return expectedUnitHeight;
    }
}
